package com.example.mvpdemo.base;

/**
 * name Model层
 * desc 接收控制层数据并请求网络返回数据
 * author Sy
 * email 564379992@qq.com
 * created 2020/5/6 15:31
 */
public abstract class BaseModel<P extends BasePresenter, CONTRACT> extends SuperBase<CONTRACT> {

    /**
     *  定义P层，必须是BasePresenter的子类才可以传 <P extends BasePresenter>;
     */
    public P mPresenter;

    /**
     * 实例化P层
     * @param mPresenter
     */
    public BaseModel(P mPresenter){
        this.mPresenter = mPresenter;
    }

}
